/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ejb.person;

import enteties.person.TelecomFacadeLocal;
import javax.ejb.EJB;
import javax.ejb.Stateless;
import util.person.TelecomDetails;

/**
 *
 * @author Gebruiker
 */
@Stateless
public class TelecomBean implements TelecomBeanRemote {
    @EJB
    private TelecomFacadeLocal telecomFacade;

    @Override
    public Integer createTelecom(String value, Integer telecomTypeid, Integer supplierid){
        return telecomFacade.createTelecom(value, telecomTypeid, supplierid);
    }
    
    @Override
    public void removeTelecom(Integer id){
        telecomFacade.removeTelecom(id);
    }
    
    @Override
    public void editTelecom(String value, Integer telecomTypeid, Integer id){
        telecomFacade.editTelecom(value, telecomTypeid, id);
    }
    
    @Override
    public TelecomDetails getTelecomDetails(Integer id){
        return telecomFacade.getTelecomDetails(id);
    }

}
